package com.lzw.controller;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.lzw.domain.vo.ResponseVO;
import com.lzw.service.Line5Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin(origins = "*") //开启跨域请求
public class Line5Controller {

    @Autowired
    private Line5Service line5Service;

    @DS("ds2")
    @PostMapping("/line5GetMsg")
    public List<ResponseVO> line5GetMsg(@RequestParam("procedureName") String procedureName){
        List<ResponseVO> list = line5Service.line5GetMsg(procedureName);
        return list;
    }
}
